<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>改变背景颜色</title>
</head>
<body>
<button onclick="color('red')">变为红色</button>
<button onclick="color('yellow')">变为黄色</button>
<button onclick="color('blue')">变为蓝色</button>

<input type="color" onchange="color_diy(this)" >
<script src="js.js"></script>
</body>
</html>